package top.superflow.service.view.dto


import top.superflow.service.view.dto.CellType.CellType

import scala.beans.BeanProperty

class ColumnDef {

  @BeanProperty
  var headerName : String = _

  @BeanProperty
  var field : String = "value"

  @BeanProperty
  var colId : String = _

  @BeanProperty
  var width : Int = 150

  @BeanProperty
  var displayOrder : Int = -1

  @BeanProperty
  var cellType : CellType  = CellType.DATA


  @BeanProperty
  var actionDef : ActionDef = _

  @BeanProperty
  var actions : List[ActionDef] = _


  /**
    * Properties for the ag-grid
    */
  @BeanProperty
  var cellRenderer : String = _

  @BeanProperty
  var pinned : String = _
}
